﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 订单商品库存变更日志
/// </summary>
public partial class SOrderGoodsInventoryLog
{
    /// <summary>
    /// 自增id
    /// </summary>
    public uint Id { get; set; }

    /// <summary>
    /// 订单id
    /// </summary>
    public uint OrderId { get; set; }

    /// <summary>
    /// 商品id
    /// </summary>
    public uint GoodsId { get; set; }

    /// <summary>
    /// 订单状态（0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭）
    /// </summary>
    public byte OrderStatus { get; set; }

    /// <summary>
    /// 原库存
    /// </summary>
    public uint OriginalInventory { get; set; }

    /// <summary>
    /// 最新库存
    /// </summary>
    public uint NewInventory { get; set; }

    /// <summary>
    /// 是否回滚（0否, 1是）
    /// </summary>
    public byte IsRollback { get; set; }

    /// <summary>
    /// 回滚时间
    /// </summary>
    public uint RollbackTime { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public uint AddTime { get; set; }
}
